<div class="day"<?php $is_next_date = (the_date('','','',0) != ''); if (!$is_next_date):?> style="border-top:1px solid #FFF"<?php endif;?>>
        <p class="date">
		<?php  if ($is_next_date): echo ucwords(get_the_time('D j M')) ?><br /><?php the_time('Y'); endif; ?>
        </p>

	<h2 id="post-<?php the_ID(); ?>" class="elsewhere"><a href="<?php the_permalink() ?>"><?php the_title() ?></a></h2>
	<!-- <span class="comments"><?php comments_popup_link('0', '1', '%'); ?></span>-->
            <?php
            $my_thumb = get_post_meta($post->ID,'my_thumb01',1) . get_post_meta($post->ID,'my_thumb02',1) . get_post_meta($post->ID,'my_thumb03',1) ;
            if ($my_thumb != '')
               echo '<div class="post-lead lens">';
            else
               echo '<div class="post-lead">';
            ?>
                  	<div class="time-remarks">
			<div class="stars">
				<a href="<?php the_permalink() ?>" class="stars-<?php $my_rate = get_post_meta($post->ID,'my_rate',1); if ($my_rate == ''): echo '1'; else: echo $my_rate; endif; ?>"><img src="<?php bloginfo('template_url'); ?>/images/1-star.gif" alt="Stars" width="14" height="14" /></a>
			</div><!-- /.stars -->
		</div><!-- /.time-remarks -->
                    <?php edit_post_link(' (Edit)', '', ''); ?>
                    <?php //the_post_thumbnail('large'); ?>
		<?php
                    $content = get_the_content('',0,'');
                    if ($my_thumb != '' && preg_match('#<img([^>]*)>#', $content, $matches))
                	   $content = preg_replace('#<img([^>]*)>#','<a href="' . get_permalink() . '"><img src="' . $my_thumb . '"/></a>',$content);
                    $content = apply_filters('the_content', $content);
					$content = str_replace(']]>', ']]&gt;', $content);
                    echo '<p>'. $content . '</p>';
                    ?>
                    <div class="clear"></div>
		<?php if ($my_thumb != ''): ?>
                          <div class="full">
			<a href="<?php the_permalink() ?>">VOIR L&#39;IMAGE ENTIERE</a>
		      </div>
                    <?php endif;?>
		<?php $my_link = get_post_meta($post->ID,'my_link',1); if ($my_link != ''): ?>
		      <div class="continue">
			<a target="blank" href="<?php echo $my_link ?>" class="jump" target="blank">VOIR CE LIEN</a>
		      </div>
		<?php endif;?>
		<?php  if ( $page > count($pages) ) : $page = count($pages); endif; if ( preg_match('/<!--more(.*?)?-->/', $pages[$page-1], $matches) ): ?>
		<div class="continue">
			<a href="<?php the_permalink()?>">LIRE LA SUITE</a>
		</div>
		<?php endif; ?>
                <?php if (('open' == $post->comment_status) || ('open' != $post->comment_status && $post->comment_count > 0)): ?>
		      <div class="add"><?php comments_popup_link('PREMIER COMMENTAIRE', 'COMMENTAIRE &#40;1&#41;', 'COMMENTAIRES &#40;%&#41;'); ?></div>
                    <?php endif; ?>
                    <div class="clear"></div>
            </div><!-- /.post-lead -->
	<div class="clear"></div>
</div><!-- /.day -->